from flask import jsonify, request
from server.sqlauthserver import user_login, user_register
from . import auth_api

@auth_api.route('/sqltestuser_login', methods=['POST'])
def sqltest():
    data = request.json
    print(data)
    result = user_login(data)
    return result

@auth_api.route('/sqltestuser_register', methods=['POST'])
def register():
    data = request.json
    print(data)
    result = user_register(data)
    return result